def yeildText(num):
    lists = []
    while num<10:
        lists.append(num)
        yield num
        num += 1
    yield lists

i = yeildText(1)
while True:
    try:
        b = next(i)+1
        print(b)

    except:
        break;